import React, { Component } from 'react';

const Item = (props) => {
  return (
    <li>
      <span>{props.item.name}</span> <button onClick={()=>props.del(props.item.id)}>删除</button>
    </li>
  );
}

export default Item;